package org.example;

import java.util.ArrayList;
import java.util.List;

public class TestA {

    public   static List<String> list=new ArrayList<>();
    private TestA(){
        newADD();
    }

    private  void newADD() {
        list.add("1");
    }

    public List<String> getList() {
        return list;
    }

    public static void main(String[] args) {
        TestA a=new TestA();
        System.out.println(a.getList().get(0));
    }
}
